<div  class="view">
<table>
    <caption>基本信息</caption>
    <tr>
        <th>档案号</th>
        <td><?php echo $f['file_no']; ?></td>
        <th>建档日期</th>
        <td><?php echo $f['file_create_date']; ?></td>
        <th>案件类型</th>
        <td><?php echo $f['case_type']; ?></td>
    </tr>
    <tr>
        <th>申请人名称(中文)</th>
        <td colspan="3"><?php echo $f['c_name']; ?></td>
        <th>指定国家/地区</th>
        <td><?php echo $f['c_country']; ?></td>
    </tr>
    <tr>
        <th>(英文)</th>
        <td colspan="3"><?php echo $f['c_name_en']; ?></td>
        <th>具体承办人</th>
        <td><?php echo $f['c_undertaker']; ?></td>
    </tr>
    <tr>
        <th>申请人地址(中文)</th>
        <td colspan="3"><?php echo $f['c_addr']; ?></td>
        <th>国籍</th>
        <td><?php echo $f['c_nationality']; ?></td>
    </tr>
    <tr>
        <th>(英文)</th>
        <td colspan="3"><?php echo $f['c_addr_en']; ?></td>
        <th>法定代表人</th>
        <td><?php echo $f['c_legal_person']; ?></td>
    </tr>
    <tr>
        <th>其他申请人信息</th>
        <td colspan="5"><?php echo $f['c_other_info']; ?></td>
    </tr>
    <tr>
        <th>代理人</th>
        <td colspan="5"><?php echo $f['agent']; ?></td>
    </tr>
    <tr>
        <th>合作所</th>
        <td colspan="3"><?php echo $f['partner']; ?></td>
        <th>联系人</th>
        <td><?php echo $f['ct_contact']; ?></td>
    </tr>
    <tr>
        <th>电话</th>
        <td><?php echo $f['ct_telephone']; ?></td>
        <th>传真</th>
        <td><?php echo $f['ct_fax']; ?></td>
        <th>邮箱</th>
        <td><?php echo $f['ct_email']; ?></td>
    </tr>
    <tr>
        <th>邮寄地址</th>
        <td colspan="3"><?php echo $f['ct_mailing_addr']; ?></td>
        <th>QQ号</th>
        <td><?php echo $f['ct_qq']; ?></td>
    </tr>
    <tr>
        <th>外所名称</th>
        <td colspan="3"><?php echo $f['foreign_partner']; ?></td>
        <th>所在国家</th>
        <td><?php echo $f['fp_country']; ?></td>
    </tr>
    <tr>
        <th>外所地址</th>
        <td colspan="3"><?php echo $f['fp_addr']; ?></td>
        <th>档案号</th>
        <td><?php echo $f['fp_file_no']; ?></td>
    </tr>
    <tr>
        <th>联系人</th>
        <td><?php echo $f['fp_contact']; ?></td>
        <th>电话</th>
        <td><?php echo $f['fp_telephone']; ?></td>
        <th>传真</th>
        <td><?php echo $f['fp_fax']; ?></td>
    </tr>
    <tr>
        <th>邮箱</th>
        <td colspan="5"><?php echo $f['fp_email']; ?></td>
    </tr>
</table>
<?php if ($dynamic_view == "form_trademark"): ?>
<table>
    <caption>商标申请</caption>
    <tr>
        <th>商标名称</th>
        <td><?php echo $f['tm_name']; ?></td>
        <th>标样</th>
        <td><a href="<?php echo $f['tm_sample_url']; ?>" class="image-link"><?php echo $f['tm_sample_name']; ?></a></td>
        <th>类别</th>
        <td><?php echo $f['tm_class']; ?></td>
    </tr>
    <tr>
        <th>指定商品</th>
        <td colspan="5"><?php echo $f['tm_item']; ?></td>
    </tr>
    <tr>
        <th>申请日期</th>
        <td><?php echo $f['application_date']; ?></td>
        <th>申请号</th>
        <td><?php echo $f['application_no']; ?></td>
        <th>公告日期</th>
        <td><?php echo $f['tm_announcement_date']; ?></td>
    </tr>
    <tr>
        <th>注册日期</th>
        <td><?php echo $f['tm_registration_date']; ?></td>
        <th>注册号</th>
        <td><?php echo $f['tm_registration_no']; ?></td>
        <th>续展日期</th>
        <td><?php echo $f['tm_renewal_date']; ?></td>
    </tr>
    <tr>
        <th>备注</th>
        <td colspan="5"><?php echo $f['remark']; ?></td>
    </tr>
    <tr>
        <th>结果</th>
        <td><?php echo $f['result']; ?></td>
        <td colspan="4">&nbsp;</td>
    </tr>
</table>
<?php elseif ($dynamic_view == "form_trademark_other"): ?>
<table>
    <caption>商标其他申请</caption>
    <tr>
        <th>商标名称</th>
        <td><?php echo $f['tm_name']; ?></td>
        <th>类别</th>
        <td><?php echo $f['tm_class']; ?></td>
        <th>申请号</th>
        <td><?php echo $f['application_no']; ?></td>
    </tr>
    <tr>
        <th>申请日期</th>
        <td><?php echo $f['application_date']; ?></td>
        <th>完成日期</th>
        <td><?php echo $f['tmo_finish_date']; ?></td>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <th>备注</th>
        <td colspan="5"><?php echo $f['remark']; ?></td>
    </tr>
    <tr>
        <th>结果</th>
        <td><?php echo $f['result']; ?></td>
        <td colspan="4">&nbsp;</td>
    </tr>
</table>
<?php elseif ($dynamic_view == "form_patent"): ?>
<table>
    <caption>专利申请</caption>
    <tr>
        <th>专利名称</th>
        <td colspan="3"><?php echo $f['tm_name']; ?></td>
        <th>专利类型</th>
        <td><?php echo $f['tm_class']; ?></td>
    </tr>
    <tr>
        <th>申请日期</th>
        <td><?php echo $f['application_date']; ?></td>
        <th>申请号</th>
        <td><?php echo $f['application_no']; ?></td>
        <th>优先权日期</th>
        <td><?php echo $f['p_priority_date']; ?></td>
    </tr>
    <tr>
        <th>授权日期</th>
        <td><?php echo $f['p_authorization_date']; ?></td>
        <th>注册号</th>
        <td><?php echo $f['p_registration_no']; ?></td>
        <th>优先权号</th>
        <td><?php echo $f['p_priority_no']; ?></td>
    </tr>
    <tr>
        <th>备注</th>
        <td colspan="5"><?php echo $f['remark']; ?></td>
    </tr>
    <tr>
        <th>结果</th>
        <td><?php echo $f['result']; ?></td>
        <td colspan="4">&nbsp;</td>
    </tr>
</table>
<?php elseif ($dynamic_view == "form_patent_other"): ?>
<table>
    <caption>专利其他申请</caption>
    <tr>
        <th>专利名称</th>
        <td colspan="3"><?php echo $f['tm_name']; ?></td>
        <th>专利类型</th>
        <td><?php echo $f['tm_class']; ?></td>
    </tr>
    <tr>
        <th>申请日期</th>
        <td><?php echo $f['application_date']; ?></td>
        <th>申请号</th>
        <td><?php echo $f['application_no']; ?></td>
        <th>完成日期</th>
        <td><?php echo $f['po_finish_date']; ?></td>
    </tr>
    <tr>
        <th>备注</th>
        <td colspan="5"><?php echo $f['remark']; ?></td>
    </tr>
    <tr>
        <th>结果</th>
        <td><?php echo $f['result']; ?></td>
        <td colspan="4">&nbsp;</td>
    </tr>
</table>
<?php endif; ?>
<table>
    <caption>费用统计</caption>
    <tr>
        <th>收客户费用<br>（人民币）</th>
        <td><?php echo $f['custom_fee']; ?></td>
        <th>公认证费用</th>
        <td><?php echo $f['certification_fee']; ?></td>
        <th>总费用</th>
        <td><?php echo $f['total_fee']; ?></td>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <th>是否收款</th>
        <td><?php echo $f['is_collected']; ?></td>
        <th>收款日期</th>
        <td><?php echo $f['collection_date']; ?></td>
        <th>收款账户</th>
        <td><?php echo $f['collection_account']; ?></td>
        <th>确认人</th>
        <td><?php echo $f['confirmor']; ?></td>
    </tr>
    <tr>
        <th>是否开票</th>
        <td><?php echo $f['is_billed']; ?></td>
        <th>开票金额</th>
        <td><?php echo $f['billing_amount']; ?></td>
        <th>开票日期</th>
        <td><?php echo $f['billing_date']; ?></td>
        <th>开票人</th>
        <td><?php echo $f['drawer']; ?></td>
    </tr>
    <tr>
        <th>外方收费</th>
        <td colspan="7"><?php echo $f['foreign_side_charge']; ?></td>
    </tr>
</table>
<?php if ($allowed): ?>
<table class="editable-list">
    <thead>
        <tr>
            <th rowspan="2">外所账单号</th>
            <th rowspan="2">账单日期</th>
            <th colspan="5">账单金额</th>
            <th rowspan="2">汇款日期</th>
            <th rowspan="2">汇款明细</th>
            <th rowspan="2" number>余额(RMB)</th>
            <th rowspan="2">制单人</th>
            <th rowspan="2">确认人</th>
        </tr>
        <tr>
            <th>币种</th>
            <th number>外币金额</th>
            <th number>汇率</th>
            <th number>手续费(RMB)</th>
            <th number>合计(RMB)</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($checks as $c): ?>
        <tr>
            <td><?php echo $c['ck_check_no']; ?></td>
            <td><?php echo $c['ck_check_date']; ?></td>
            <td><?php echo $c['ck_currency']; ?></td>
            <td number><?php echo $c['ck_foreign_amount']; ?></td>
            <td number><?php echo $c['ck_foreign_rate']; ?></td>
            <td number><?php echo $c['ck_fee']; ?></td>
            <td number><?php echo $c['ck_total_amount']; ?></td>
            <td><?php echo $c['ck_remit_date']; ?></td>
            <td><?php echo $c['ck_remit_detail']; ?></td>
            <td number><?php echo $c['ck_balance']; ?></td>
            <td><?php echo $c['ck_maker']; ?></td>
            <td><?php echo $c['ck_confirmor']; ?></td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php endif; ?>
<table>
	<caption>限时提醒</caption>
    <?php foreach ($rms as $rm): ?>
	<tr>
		<th>文件名称</th>
		<td><?php echo $rm['rm_filename']; ?></td>
		<th>收文日期</th>
		<td><?php echo $rm['rm_receive_first_date']; ?></td>
		<th>截止日期</th>
		<td><?php echo $rm['rm_receive_last_date']; ?></td>
	</tr>
	<tr>
		<th>处理日期</th>
		<td><?php echo $rm['rm_operate_date']; ?></td>
		<th>处理结果</th>
		<td><?php echo $rm['rm_operate_result']; ?></td>
		<th>经办人</th>
        <td><?php echo $rm['rm_operator']; ?></td>
	</tr>
    <?php endforeach; ?>
</table>

<table>
	<caption>官方文件</caption>
    <?php foreach ($docs as $doc): ?>
	<tr>
		<th>文件名称</th>
		<td><?php echo $doc['doc_name']; ?></td>
		<th>录入日期</th>
		<td><?php echo $doc['doc_entry_date']; ?></td>
		<th>附件</th>
        <td><a href="<?php echo $doc['doc_url']; ?>" class="image-link"><?php echo $doc['doc_original_name']; ?></a></td>
	</tr>
    <?php endforeach; ?>
</table>

</div>

<script>
    $(function() {
        $(".image-link").magnificPopup({type:'image'});
    });
</script>